<h1>{$lang.view_members}</h1>

<h2>{$lang.search_results}</h2>
{$form}

<p><strong>Query: </strong>{$view_query}</p>

{$pagination}

<ol id="view-users">

{section loop=$tables name=i}
{if ($smarty.section.i.iteration-1) is div by 3}
<hr style="display: block; clear: left; border: none;" />
{/if}
<li class="user {$tables[i].class}" id="{$tables[i].id}">
    <h3>{$tables[i].heading}&nbsp;</h3>
    <table>
        <tbody>
        	{capture assign="even"}odd{/capture}
        	{section loop=$tables[i].rows name=i2}
        		{if $even=="odd"}
        			{capture assign="even"}even{/capture}
        		{else}
        			{capture assign="even"}odd{/capture}
        		{/if}
        		<tr class="{$tables[i].rows[i2].class}" id="{$tables[i].rows[i2].id}">
        		  <th class="{$even}">{$tables[i].rows[i2].th}</th>
        		  <td class="{$even}">{$tables[i].rows[i2].td}</td>
        		</tr>
        	{/section}
        	<tr>
        	 <th class="actions">{$lang.actions}</th>
        	 <td class="actions"><a href="{$actionUrls.edit}&amp;userid={$tables[i].user_data.id}">{$lang.edit}</a></td>
        	</tr>
        </tbody>
    </table>

</li>
{/section}

</ol>
<div class="clearafter">&nbsp;</div>

{$pagination}
